package com.uiao.stone;

import com.uiao.stone.common.config.ConfigBean;
import com.uiao.stone.springanno.AnnoA;
import com.uiao.stone.springanno.AnnoB;
import com.uiao.stone.springanno.AnnoC;
import com.uiao.stone.springanno.ApplicationConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author cuihao
 * @date 2017/12/12
 */
@EnableScheduling
@EnableConfigurationProperties({ConfigBean.class})
@SpringBootApplication
//@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@Import({AnnoA.class})
@MapperScan("com.uiao.stone.dao")
public class StoneApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(StoneApplication.class, args);
        System.out.println("**********石头启动成功**********！");

    }
}
